/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.repository;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.shanhesoft.java.common.persistence.datascope.DataScope;
import com.shanhesoft.java.common.persistence.repository.BaseRepository;
import com.shanhesoft.java.modules.exam.domain.ExaminationRecord;
import com.shanhesoft.java.modules.exam.domain.vo.ExaminationRecordVo;

import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 考试记录管理Repository 考试记录管理
 * @author admin
 * @version 2020-10-10 17:00:18
 */
public interface ExaminationRecordRepository extends BaseRepository<ExaminationRecord> {
	IPage<ExaminationRecordVo> findExamRecordVoPage(IPage page, @Param(Constants.WRAPPER) Wrapper<ExaminationRecord> wrapper);
	ExaminationRecordVo findExamRecordVobyId(String id);
	IPage<Map<String, Object>> getWrongRecordsByUserId(IPage page, @Param(Constants.WRAPPER) Wrapper<ExaminationRecord> wrapper);
}
